package com.siyuan.sns.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.siyuan.sns.dao.ExampleDao;
import com.siyuan.sns.domain.entity.ExampleEntity;
import com.siyuan.sns.service.ExampleService;

@Transactional
@Service("adminService")
public class ExampleServiceImpl implements ExampleService {
	private ExampleDao adminDao;

	public void setAdminDao(ExampleDao adminDao) {
		this.adminDao = adminDao;
	}

	@Override
	public ExampleEntity findByUsername(String username) {
		return this.adminDao.findByUsername(username);
	}
}
